#include <stdlib.h>
#include <stdio.h>

int a[1024*30] ={1};
int b = 10;
void al()
{
    printf("In shared lib -- modified to main data section --- int b = 10 : %08p\n", &b);
    printf("In shared lib -- shared lib data section or heap --- int a[1024*30] ={1} : %08p\n", a);

	int i = 0;
	for(;i<10;i++)
	{
		printf("%d\n",a[i]);
	}

	char * p = (char *)malloc(20);
    printf("In shared lib -- heap --- char * p = (char *)malloc(20) : %08p\n", p);

    printf("In shared lib -- stack --- int i = 0 : %08p\n", &i);
	return;
}
